home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13759 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: ix.netcom.com!news
  2. From: jlilley@ix.netcom.com (John Lilley)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Memory and Borland C++ ... Urgent
  5. Date: 27 Mar 1996 06:00:54 GMT
  6. Organization: Netcom
  7. Message-ID: <4jalim$d58@dfw-ixnews2.ix.netcom.com>
  8. References: <1996Mar26.184644.116670@kuhub.cc.ukans.edu>
  9. NNTP-Posting-Host: den-co10-01.ix.netcom.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-NETCOM-Date: Wed Mar 27 12:00:54 AM CST 1996
  13. X-Newsreader: WinVN 0.99.7
  14.  
  15. In article <1996Mar26.184644.116670@kuhub.cc.ukans.edu>, 
  16. Unknown@Unknown.cc.com says...
  17. >
  18. >        Hi, I need some advice... I have to do a project for a class here.
  19. >And need to find the effectiveness of different sorting algorithms.
  20. >Have to find the total number of compares and switches in the
  21. >different algorithms.  I have to do this for 10, 50, 100, 1000, 2500,
  22. >5000, and 10000 size arrays.  These arrays are integer arrays of
  23. >random numbers that I need to sort.  I am okay up to 1000 and then
  24. >when I try to do above that I am getting errors.
  25.  
  26. Sounds like 16-bit DOS.  Try declaring the array as:
  27.  
  28. int far array[10000];
  29.  
  30. or if that fails:
  31.  
  32. int huge array[10000];
  33.  
  34. john lilley
  35.  
  36.